﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IBLL
{
    public interface IMemberBLL
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="member"></param>
        /// <returns></returns>
        Task<int> AddMember(Member member);

        Task<int> DeleteMember(int id);

        Task<int> UpdateMember(Member member);

        List<Member> GetAllMembers();
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Member FindMember(int id);
        /// <summary>
        /// 逻辑删除 修改状态
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> IsDel(int id);
    }
}
